/* Lab 1, exercise 5
刘文骏 2023.7.7
*/
#include <system.h>
// 0.032ms for each loop
void delay()
{
    for(int i = 5000; i != 0; i--);
}

void main()
{
    trisb = 0x00; // set all bits in port B as outputs
    while(1)
    {
        portb=0xff; // LEDs on
        delay(); // wait a bit
        portb = 0; // LEDs off
        delay(); // wait a bit
    }
}